package com.yn.xr.common.constants;
/**
 * 异常代码定义 常量类
 * @author HX1401028
 *
 */
public class ExceptionErrorCodeDef {
	
	/**
	 * 代码方面的异常 请使用1开头
	 */
	//非法请求
	public static short illegalReq = 10001;
	/**
	 * 数据版本异常 出现脏读
	 */
	public static short dataVersionError = 10002;
	
	/**
	 * 资金记录需要的数据异常
	 */
	public static short moneyRecordDataError = 10003;
	
	/**
	 * 往数据库中新增数据异常
	 */
	public static short saveDataError = 10004;

	
	//业务逻辑异常  请使用2开头
	
	/**
	 * 请求账号网关响应异常
	 */
	public static short accGateResException = 20505;
	
	//账户资金不足异常
	public static short accCashLack = 20001;

	/**
	 * 用户登录异常
	 */
	public static short USER_LOGIN_ERROR = 20101;
	/**
	 * 用户注册异常
	 */
	public static short USER_REGIST_ERROR = 20201;
	/**
	 * 用户设置密码异常
	 */
	public static short USER_SET_PWD_ERROR = 20301;
	
	//提现冻结金额不足
	public static short accCongealWithdrawLack = 20002;
	//惠卡宝定投账户金额不足
	public static short accHkbCashLack = 20003;
	//惠卡宝定投金额 投资金额非法(未在相应的定投项目的限制金额额度内)
	public static short hkbOutSingleRestrictionsAmount = 20004;
	//惠卡宝定投投资异常  相应的定投项目已达到可投资总额
	public static short hkbOutRestrictionsAmount = 20005;
	//惠卡宝定投投资异常  相应的定投项目投资参与人数已达到项目设定人数
	public static short hkbOutRestrictionsMinge = 20006;
	//惠卡宝转出  转出金额异常(转出金额不足)
	public static short hkbTransferOutAmountError = 20007;
	//惠卡宝转出 定投投资状态异常(不是有效定投)
	public static short hkbTransferOutProStatusError = 20008;
	
	//惠卡宝定投转让 申请转让金额超出可转让金额
	public static short hkbBargainorApplyAmountError = 20009;
	//惠卡宝定投转让 申请转让的价格超出系统的的折扣或溢价限制
	public static short hkbBargainorPriceError = 20010;
	//惠卡宝定投转让 同一时刻申请转让的次数超出系统的限制次数
	public static short hkbBargainorTimesError = 20011;
	//惠卡宝定投转让 申请转让的有效时限(单位为天)
	public static short hkbBargainorApplyValidDaysError = 20012;
	//惠卡宝定投转让 被转让的定投离结束时间未达到系统设定的标准
	public static short hkbBargainorItermMaturityError = 20013;
	//惠卡宝定投转让 被转让的定投的状态异常
	public static short hkbBargainorItermStatusError = 20014;
	//惠信钱包账户异常(还有未计算的收益 并且补充计算失败)
	public static short qbAccFundsError = 20015;
	//惠卡宝定投转让申请后  剩余持有金额不足异常
	public static short hkbBargainorItermRestAmoumtLimit = 20016;
	//惠卡宝定投转让 取消申请转让时未找到被转让方异常
	public static short hkbCancelBargainorApplyError = 20017;
	//惠卡宝定投项目名重复
	public static short  duplicatedHkbProjectName = 30001;
	// 用户资金异常
	public static short userFundsError = 30002;
	//获取二级资金类别异常
	public static short MONEY_RECORD_CELL_TYPE_LACK_ERROR = 30003;
	// 用户资金对象不存在
	public static short USER_FUNDS_EMPTY = 30004;
	
	/**为webApi支付接口等 定义的异常码(31开头) 开始**/
	//惠信号不存在
	public static short hxAccNoExist = 31001;
	//订单号重复
	public static short orderRepeat = 31002;
	//订单商户与传递商户userid不一致
	public static short userIdDifferent = 31003;
	//与当前状态冲突
	public static short statusClash = 31004;
	//金额不准确
	public static short cashError = 31005;
	//订单不存在
	public static short orderNotExist = 31006;
	//货物与收款对应的商品不一致
	public static short merchandiseIdDifferent = 31007;
	//冻结金额小于实际收款额
	public static short congealDueinCashExcep = 31008;
	//退款交易订单号未能匹配到支付订单号
	public static short refunsPayOrderNotExist = 31009;
	//申请退款类型不正确
	public static short refundTypeError = 31010;
	//当前支付状态不允许该操作
	public static short payStatusClash = 31011;
	// 订单已完成
	public static short orderComplete = 31012;
	// 支付密码错误
	public static short wrongPayPassword = 31013;
	// 用户被锁定
	public static short userLock = 31014;
	// 用户不存在
	public static short userNoExist = 31015;
	
	//退款类型跟退款金额冲突
	public static short refundTypeAmountClash = 31016;
	//支付模式跟退款类型冲突
	public static short paymentModeRefundTypeClash=31017;
	//实际退款金额与支付金额冲突
	public static short refundAmountRealClash = 31018;
	//支付金额错误
	public static short tradeCashError = 31019;
	//支付金额错误
	public static short payCashError = 31020;
	//传递的货款收入信息不正确
	public static short traderMerchandiseRepetitError = 31021;
	
	
	//支付信息与返现参数不正确
	public static short traderInfosError = 31022;
	
	//交易类型设计到平台收支时，校验平台收支金额异常
	public static short plateformTypeAmountError = 31023;
	
	//业务系统平台号不正确
	public static short plateformNoError = 31024;
	//交易类型为空
	public static short tradeTypeEmpty = 31025;
	
	//用户奖励类型不正确
	public static short confirmReceiveTypeError = 31026;
	
	//未找到商品支付信息，请检查传递的货款流水号
	public static short paymentMerchanRelatNullError = 31027;
	
	//平台id与初始化数据时传递的id不相同
	public static short plateformIdNuEqualError = 31028;
	/**为webApi支付接口等 定义的异常码 结束**/
	//用户移动支付未开启
	public static short mobilePayLock = 31029;
	//用户支付超过安全限额
	public static short overSafePayAmount = 31030;

	// 商户传递的服务器时间为空
	public static short serverTimeIsNull = 31031;
	// 失效时间未配置
	public static short expiredTimeNotConfig = 31032;
	
    // 短信异常：手机号不合法
    public static short SMS_MOBILE_INVALID = 31033;
    
    // 短信异常：手机号为空
    public static short SMS_MOBILE_EMPTY = 31034;
    
    // 短信异常：发送短信失败
    public static short SMS_SEND_FAIL = 31035;
	
	//用户支付超过安全限额，手机号为空,不能发送验证码
    public static short overSafePayAmountAndMobileEmpty = 31036;
    
    //用户支付超过安全限额，手机号不合法,不能发送验证码
    public static short overSafePayAmountAndMobileInvalid = 31037;
    
    //用户被锁定 非法操作
    public static short luckUserIllegalOperatorError = 31038;
    
    //客户端二维码已失效
    public static short qrcodePayDisabled = 31040;
    //回传的服务器时间格式不正确
    public static short qrcodePayDateError = 31041;
    
    
    // 支付订单手续费异常：手续费数据不规范或者类型不存在
    public static short PAYMENT_HANDLING_CHARGE_TYPE_ERROR = 31042;
    
    //支付需要验证码
    public static short PAYMENT_ORDER_NEED_AUTHMOBILECODE = 31043;
    //验证码错误
    public static short AUTHMOBILECODE_ERROR = 31044;
    //体验进账户余额不足
    public static short tasteAcc_lack_ERROR = 31045;
    //体验金账户余额异常
    public static short tasteAcc_ERROR = 31046;
    //体验金不符合添加条件
    public static short taste_addTimes_Illegal_ERROR = 31047;
    
    //用户5天前的总金额不足以支付
    public static short days_accCash_NotEnough=31048;
    // 未授权平台(商户号不存在)
    public static short plateform_null_exception = 104;
    
    //维护用户免费金额异常
    public static short free_amount_dataError=31049;
    
    //支付失败,钱包可用余额不足!(可用余额为五天前的钱包余额,为了防止盗卡,带来的不便,敬请谅解!)
    public static short days_accCash_NotEnoughDail=31050;
}
